﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Configuration;

namespace AddressBookDev.Utilities
{
    public static class File
    {
        public static string GetPath(params string[] folders)
        {
            string path = "";
            foreach (string folder in folders)
            {
                path = Path.Combine(path, folder);
                if (!Directory.Exists(path))
                {
                    Directory.CreateDirectory(path);
                }
            }
            return path;
        }
    }
}